Skip to content

WasmAllocator: WebAssembly Memory Allocator #2286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 16, 2019

Conversation

shritesh
Copy link
Contributor

This is a simple memory allocator based on the FixedBufferAllocator. It instead uses the "llvm.wasm.memory.grow.i32" intrinsic when the allocated memory is full. The is_last_item heuristic works really well here as WASM memory is linear and can only grow on one end.

Copy link
Member

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lookin' good and here are some issues to address

@andrewrk andrewrk merged commit 52caf31 into ziglang:master Apr 16, 2019
@shritesh shritesh deleted the wasm_alloc branch May 1, 2019 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants